CC=gcc
STD=-std=gnu99
BIN=a.bin
OBJ=main.o master.o teacher.o student.o tool.o
all:$(OBJ)
		$(CC) $(STD) -o $(BIN) $(OBJ)
main.o:main.c main.h student.h teacher.h master.h
		$(CC) $(STD)  -c main.c
master.o:master.c master.h main.h tool.h
		$(CC) $(STD)  -c master.c
teacher.o:teacher.c teacher.h main.h tool.h
		$(CC) $(STD)  -c teacher.c
student.o:student.c student.h main.h tool.h
		$(CC) $(STD)  -c student.c
tool.o:tool.c tool.h
clean:
		rm -rf $(BIN) $(OBJ)
